package org.zjx.analysis.analyze.tap;

import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class CSCTabAnalysis extends BaseTabAnalysis {

    public CSCTabAnalysis(IWindow window) {
        super("长寿村", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 276, 429);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(219, 57, 580, 516);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(160, 24, 201, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACoAAAAOCAYAAABZ/o57AAAD40lEQVR4XpVU+VNTSRDOP7ZFQso9FIWEBFAEAwp4IKWIKW8ET9AQKspKAoFwGTFEDEFIUJSSeCEeib6A1worCsriYsm667LQvu7HDHlJfnC/qq8yX3fP9Pd6pqJI0NUB4+6jvaAvcMIP2rq4XLG2UaYTtLUynbKxDdw9Qsw+Xh/RC9npEyDJ0BwTZ/QPPAelXlorIhOLiwCXeoWYDdhkcGgMEEp9PTdZfNgLVbZBMNkCxP7AK6rBdVWdnIUHvDHnInA40XFkcm4L5XX55yWj2JgRcdkflm3Aws9zXym3r6KPDDKGn7+n+Pfg3qM3vM+qDU0imyleauoHdYYdVGkYb+ZcX3iB8oadHZRTqHQ2YER4RKO4/mmdHbqvjfBGmYVOUOpqOdHolj2dEBh6DbeHx4gMTN8eHifeEm8jZ6eLznW0D/O6SIRffIgOcYy+/BDfaJPrAS+y2AMyg8wku/qg8A5CI5MgLE13YnKWNOOTkSkIhifpo7BHot5G09p/0k/1ZvHpJGU7aDDZRe2c2/Z1Un7HIS/lFCp9LTAiPH6BzB2z9McYZFRpa2CL0QXvpz/D9MwccX5+gfbP/PlF1H/F4RwYj13hvXpvjFL9698/ks4pboe//5kHdbqVdEqug/L6ghbSiirbTQr8Hxyq7AXdpkZweR9DR3cQOntCFB978xHcou64EuL8bXxGfEJhcHWHIKtIej6JaVbZeWXmqxRHePoEWjOjuvwW0gqcTorBDhpDAyX6Bp7RurLmOumCkoukkcli3eqseppoguYs58MnE1Sbs8MJ2YVtMiLOOW5Ben4T7UO2upefFj4dxI/ptXDCco3Wv6y1cj/6PAftIaOMCI/vKTfybuoTLCwsykwxqjQWYqvrvtTxO7Aq00ZDQTQv7TOWe2H6jzkwFJ3nHi56HsUxutQQifD4QlwnZUrX8XR0ksdUGjPn4N2XlK+29kN6Xj38O/8fHK/2R9RKZx4x+bgOCm8ppk49Q7/G8suy+kbnXfEpBUWj0v+sflMDxeMYDcrMGLY3Ufzt1Cz8nFHD4+cc0tsuO9VNWp1aDf4bYYq1uYd4HeKIqWdJW+Co2Q8Fu5y8X7RRxjhGl00hgsIEjL6YojWLZ26WrgFxpv46KJNPExM1Jr5GYu3Bk13QRbeyfCb7mGgijOWXuHZcuANn7QOgy7VBXnEr5bUGK+VkRmc/feGGSkpdMhNqbRUE7klXXVrRJctFMxppG62yj4k0uvuwm+vhx+NRO5eHpYhsoMn+FbbvdcY0juSKVDMo11TGMqJmZYaFPrTC4oOsrQ0xZzCWnfJK50XFM/JssLmklYbDYt8A8L9w0uShnfIAAAAASUVORK5CYII=");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
